package com.lanou3g.code0522.listener;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;
import java.util.HashMap;
import java.util.Map;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/5/22;
 * Otherwise, I don't know who created it either
 */

public class HttpSession {
    private Map<String,Object> map = new HashMap<>();
    public void setAttribute(String name, Object value) {
        map.put(name, value);

//        if (value instanceof HttpSessionBindingListener){
//            HttpSessionBindingListener
//                    l = (HttpSessionBindingListener) value;
//            l.valueBound(new HttpSessionBindingEvent());
//        }
    }
}
